<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>  

<script type="text/javascript"
	src='<c:url value="/resources/js/jquery-ui-1.8.16.custom.min.js"/>'></script>
<link rel="stylesheet"
	href='<c:url value="/resources/css/redmond/jquery-ui-1.8.16.custom.css"/>' />
<script type="text/javascript"
	src='<c:url value="/resources/js/jquery.ui.datepicker-zh-CN.js"/>'></script>
<script type="text/javascript"
	src='<c:url value="/resources/js/members/summary.js"/>'></script>
	
<form action="" id="summarySearchForm">
<fieldset>
	<legend>综合统计</legend>
	<table class="nostyle">
		<tbody>
			<tr>
				<td><label>时间:</label></td>
				<td><input type="text" id="from1" name="from" class="text-long" /></td>
				<td><label>至</label><input type="text" id="to1" name="to" class="text-long" /></td>
				<td><input type="button" id="searchSummaryBtn" value="查询" /></td>
			</tr>
		</tbody>
	</table>
</fieldset>
</form>
<table>
	<tr>
		<td>
			本期增加会员数量:<label id="addMemberCount">0</label>个
		</td>
		<td>
			总会员数量:<label id="totalMemberCount">0</label>个
		</td>
	</tr>
	<tr class="odd">
		<td>
			本期会员消费金额:<label id="costAmount">0</label>元
		</td>
		<td>
			总营业额:<label id="totalCostAmount">0</label>元
		</td>
	</tr>
	<tr>
		<td>
			本期销售商品数量：<label id="selledCount">0</label>只
		</td>
		<td>
			总销售量：<label id="totalSelledCount">0</label>只
		</td>
	</tr>
</table>

<form action="" id="memberGoodsCostForm">
<input type="hidden" id="memberCostPageIndex" name="pageIndex" value="1">
<fieldset>
	<legend>会员消费金额，商品明细统计</legend>
	<table class="nostyle">
		<tbody>
			<tr>
				<td><label>时间:</label></td>
				<td><input type="text" id="from2" name="from" class="text-long" /></td>
				<td><label>至</label><input type="text" id="to2" name="to" class="text-long" /></td>
				<td><input type="button" id="searchMemberGoodsCostBtn" value="查询" /></td>
			</tr>
		</tbody>
	</table>
</fieldset>
</form>
<div id="memberGoodsCostTable"></div>

<form id="goodsStatisticsSearchForm">
	<input type="hidden" id="goodsStatisticsPageIndex" name="pageIndex" value="1">
	<fieldset>
		<legend>各类商品销售数量统计</legend>
		<table class="nostyle">
			<tbody>
				<tr>
					<td><label>时间:</label></td>
					<td><input type="text" id="from3" name="from"   /></td>
					<td><label>至</label><input type="text" id="to3" name="to" /></td>
					<td><input type="button" id="goodsStatisticsSearchBtn" value="查询" /></td>
				</tr>
			</tbody>
		</table>
	</fieldset>
</form>
<div id="goodsStatisticsTable"></div>